typedef struct {
    int x, y, z;
} Data;


int foo(Data *dp)
{
    int n;
    dp->x = n;
    dp->y = n;
    ((Data *)0x1000)->y = n;
    n = ((Data *)0x1000)->x;
    return dp->z;
}